package Tostring;

public class testname1 {
    public static void main(String[] args) {
        testname x1 = new testname();
        testname x = new testname();
//        x[0] = new testname("wu", 18, 198.8);
//        x[1] = new testname("wu", 18, 198.8);
//        x[2] = new testname("wu", 18, 198.8);
//        for (testname person : x) {
//            // 这里会调用testname类的toString方法
//            System.out.println(person);

//
        x =new testname("wu",18,20);
        System.out.println(x.toString());
//        }
    }
}
